import request from '../utils/request';
// import { useTokenStore } from '../stores/token';
// 学生提交作业列表

export const getStudentAssService = (pageData) => {
    return request.get('/assSubmit/list',{params:pageData})
}

//根据作业id获取学生作业
export const getByIdAssService = (assId) => {
    return request.get('/assSubmit/'+assId)
}

//根据作业id获取学生作业
export const getByIdStuService = (stuId) => {
    return request.get('/assSubmit/selectByStuId/'+stuId)
}

export const getByIdService = (id) => {
    return request.get('/assSubmit/select/'+id)
}
export const addStudentAssService = (data) => {
    return request.post('/assSubmit/add', data)
}

export const deleteStudentAssService = (id) => {
    return request.delete('/assSubmit/'+id)
}

// 数据修改
export const updateStudentAssService = (data) => {
    return request.put('/assSubmit/update', data)
}